﻿capital = 328

oob = "tabrasa_1936JAP"
if = {
	limit = { has_dlc = "Waking the Tiger" }
	set_country_flag = MAN_northern_bandits
	set_country_flag = MAN_eastern_bandits
	set_country_flag = MAN_western_bandits
	add_ideas = MAN_banditry
	add_ideas = MAN_kwantung_veto
	add_ideas = MAN_low_legitimacy_5
}

recruit_character = MAN_aisin_gioro_puyi
recruit_character = MAN_zhang_haipeng
recruit_character = MAN_zhang_jinghui
recruit_character = MAN_aisin_gioro_xiqia
recruit_character = MAN_yoshiko_kawashima
recruit_character = MAN_zhao_shangzhi
recruit_character = MAN_changlin_linge
recruit_character = MAN_kyoiji_tomonaga
recruit_character = MAN_yonimitsu_kasahara
recruit_character = MAN_deng_linge
recruit_character = MAN_hung_zhehuang
recruit_character = MAN_nakajima_kesago
recruit_character = MAN_yin_zuoqian
recruit_character = MAN_hesehn_tiemei
recruit_character = MAN_xian_yuan
recruit_character = MAN_guan_xingde

if = {
	limit = { has_dlc = "No Step Back" }
	recruit_character = SOV_grigory_semyonov
	SOV_grigory_semyonov = { 
		set_character_flag = SOV_exiled_army_leader
	}
}


# Starting tech
set_technology = {
	infantry_weapons = 1
	gw_artillery = 1
	interwar_antiair = 1
	interwar_antitank = 1
	basic_train = 1
	motorised_infantry = 1
	tech_support = 1
	basic_train = 1
	tech_trucks = 1 
}
add_equipment_to_stockpile = { type = train_equipment_1 amount = 75 producer = JAP }

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "Hawker Fury" 
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
	}
	create_equipment_variant = {
		name = "Handley Page Heyford"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_1_2x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = lmg_defense_turret
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
	}	
	else = {
		set_technology = {
			early_fighter = 1
			early_bomber = 1
		}
	}
}	

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = { 
		gwtank = 1
	}
}

if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = { 
		gwtank_chassis = 1
		
	}
}


if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_dp_light_battery = 1
		basic_torpedo = 1
		coastal_defense_ships = 1
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
	}
}

if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Jianwei Class"			
		type = ship_hull_light_1
		name_group = CHI_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = dp_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "Haiqi Class"					
		type = ship_hull_cruiser_1
		name_group = CHI_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = ship_airplane_launcher_1
		}
	}
	# Costal Defense #
	create_equipment_variant = {
		name = "Hairong Class"
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = CHI_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = dp_ship_secondaries_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
}






if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {
		armored_car1 = 1
	}
}

set_convoys = 20
set_research_slots = 4
add_political_power = 2000
add_manpower = 50000
add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 10000 producer = JAP }


1939.1.1 = {

	add_to_war = {
		targeted_alliance = JAP
		enemy = CHI
		hostility_reason = puppet
	}
	


	if = {
		limit = { has_dlc = "Waking the Tiger" }

		
		#No bandits
		unlock_national_focus = MAN_pacify_the_countryside
		remove_ideas = MAN_banditry

		complete_national_focus = MAN_army_modernization
		complete_national_focus = MAN_mukden_military_academy
		complete_national_focus = MAN_law_university
		complete_national_focus = MAN_obedience

		#Five year plan
		unlock_national_focus = MAN_first_five_year_plan
		add_timed_idea = { days = 1275 idea = MAN_five_year_plan_industry }

		complete_national_focus = MAN_trade_delegation
		complete_national_focus = MAN_expand_the_textile_industry
		complete_national_focus = MAN_hoankyoku
		complete_national_focus = MAN_invite_japanese_investors
		complete_national_focus = MAN_expand_the_railways
		complete_national_focus = MAN_develop_aluminum_sources
		complete_national_focus = MAN_social_research_unit
	}

}

set_politics = {
	ruling_party = fascism
	last_election = "1936.1.1"
	election_frequency = 48
	elections_allowed = no
}

set_popularities = {
	democratic = 25
	fascism = 25
	communism = 25
	neutrality = 25
}

